/**
教程地址：http://www.ng-newsletter.com/posts/chrome-apps-on-angular.html
**/


angular.module('weather', ['ngRoute'])
.config(function($routeProvider) {
	$routeProvider
	.when('/', {
		templateUrl: 'templates/home.html',
		controller: 'MainController'
	})
	.when('/settings', {
		templateUrl: 'templates/settings.html',
		controller: 'SettingsController'
	})	
	.otherwise({
		redirectTo: '/'
	});
})
